{include file="header.tpl"}

{if isset($info_action)}
	<div class="info i_{$info_color}">
		{$info_action}
	</div>
{/if}
<h3>{$title}</h3>

<div class="table_div" >
<form method="post" id="show_practices">
	<table class="practices_tab">
		<thead>
			<tr>
				<th></th>
				<th><a href="#" class="tip_trigger">Lp.<span class="tip">Sortuj wg Lp.</span></a></th>
				<th><a href="#" class="tip_trigger">Data rejestracji<span class="tip">Sortuj wg daty rejestracji.</span></a></th>
				<th><a href="#" class="tip_trigger">Nazwa<span class="tip">Sortuj wg nazwy.</span></a></th>
				<th>Telefon</th>
				<th>Strona www</th>
				<th>Akcje</th>
			</tr>
		</thead>
		<tbody>
			{foreach item = company from = $companies name = company}
			<tr style="background-color:{cycle values=#F6F6F6,white}">
				<td><input type="checkbox" name="cb[]" id="cb[]" value="{$company.id}"/></td>
				<td>{$smarty.foreach.company.iteration}</td>
				<td>{$company.reg_date}</td>
				<td>{$company.name}</td>
				<td>{$company.phone}</td>
				<td>{$company.site}</td>
				<td>
					<a href ="ucompanies.php?show_id={$company.id}" class="tip_trigger" ><span class="tip">Pokaż szczegóły</span><img src="../images/magnifier-left.png"/></a>
					&nbsp 			
					<a href ="companies.php?remove_id={$company.id}" class="tip_trigger" ><span class="tip">Usuń studenta</span><img src="../images/cross.png"/></a>
				</td>
			</tr>
			{/foreach}
		</tbody>
	<table>
</form>
	<div>
		<input type="button"  value="Zaznacz" onclick="jqCheckAll('show_practices', 'cb[]', 1);" class="button b_blue"/>
		<input type="button"  value="Odznacz" onclick="jqCheckAll('show_practices', 'cv[]', 0);" class="button b_blue"/>
		<input type="submit" name="delete" id="delete" value="Usuń" class="button b_red"/>
	</div>
</div>
{include file="footer.tpl"}